package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:大数据指标明细值
 * @param:
 * @return:
 * @auther: jiangxiongfei
 * @date: 2020-08-10 19:54
 */
@Data
@Accessors(chain = true)
@TableName("grade_big_data_quota")
public class GradeBigDataQuota extends Model<GradeBigDataQuota> {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "数据日期yyyy-MM-dd")
    private String dataDate;

    @ApiModelProperty(value = "渠道（合作商）编号")
    private String channelCode;

    @ApiModelProperty(value = "渠道全称")
    private String channelFullName;

    @ApiModelProperty(value = "渠道归属（00-非直营，01-直营车商）")
    private String channelBelong;

    @ApiModelProperty(value = "业务类型（01-新车，03-二手车）")
    private String businessType;

    @ApiModelProperty(value = "指标类型(目前9个指标)")
    private String elementType;

    @ApiModelProperty(value = "时间维度（m-月，h-半年，q-季，y-年）")
    private String timeDimension;

    @ApiModelProperty(value = "指标值")
    private BigDecimal value;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "删除标记（0-未删，1-已删）")
    private String delFlag;
}
